package cn.akira.domain.strategy.service.rule.chain;

/**
 * @author fjl95
 * @date 2025/5/15
 * @description 责任链抽象基类，责任链模版，封装链的拼接与传递
 */
public abstract class AbstractLogicChain implements ILogicChain {

    private ILogicChain next;

    /*
    添加链
     */
    @Override
    public ILogicChain appendNext(ILogicChain next) {
        this.next = next;
        return next;
    }
    /*
    * 调用下一个链*/
    @Override
    public ILogicChain next() {
        return next;
    }
//    用来获取自身的rule_model
    protected abstract String ruleModel();
}
